<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Dist::Milla::Tutorial - Milla HOW TO - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Dist-Milla - MetaCPAN" href="https://metacpan.org/dist/Dist-Milla/releases.rss" />
        <link rel="canonical" href="https://metacpan.org/dist/Dist-Milla/view/lib/Dist/Milla/Tutorial.pod" />
        <meta name="description" content="Milla HOW TO" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Dist::Milla::Tutorial" />
<meta name="twitter:title"       content="Dist::Milla::Tutorial" />
<meta name="twitter:description" content="Milla HOW TO" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Dist::Milla::Tutorial.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Dist-Milla was released.">
      <span class="relatize">05 Jul 2023 19:37:47 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Dist-Milla">Dist-Milla</a>
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Dist-Milla/source/lib/Dist/Milla/Tutorial.pod">Source</a>
    (<a href="https://metacpan.org/dist/Dist-Milla/source/lib/Dist/Milla/Tutorial.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Dist-Milla/source/lib/Dist/Milla">Browse</a>
    (<a href="https://metacpan.org/dist/Dist-Milla/source/lib/Dist/Milla?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Dist-Milla/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/miyagawa/Dist-Milla">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Dist-Milla/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/miyagawa/Dist-Milla">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/miyagawa/Dist-Milla/issues">Issues</a>
      (7)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Dist-Milla+v1.0.22" title="Matrix">Testers</a>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/MIYAGAWA/Dist-Milla-v1.0.22">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Dist-Milla who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Dist-Milla-v1.0.22/index.html">100.00% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.12.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Dist-Milla/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Dist-Milla-v1.0.22.tar.gz">
      Download (<span itemprop="fileSize">25.25KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FMIYAGAWA%2FDist-Milla-v1.0.22%2Flib%2FDist%2FMilla%2FTutorial.pod">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Dist-Milla/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Dist-Milla/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Dist-Milla">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Dist-Milla">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Dist/Milla/Tutorial.pod&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="MIYAGAWA/Dist-Milla-v1.0.22"
>v1.0.22
  (MIYAGAWA on 2023-07-05)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.21"
>v1.0.21
  (MIYAGAWA on 2022-02-13)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.20"
>v1.0.20
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.19"
>v1.0.19
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.18"
>v1.0.18
  (MIYAGAWA on 2017-06-06)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.17"
>v1.0.17
  (MIYAGAWA on 2016-11-25)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.16"
>v1.0.16
  (MIYAGAWA on 2016-05-08)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.15"
>v1.0.15
  (MIYAGAWA on 2015-03-31)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.14"
>v1.0.14
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.13"
>v1.0.13
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.12"
>v1.0.12
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.11"
>v1.0.11
  (MIYAGAWA on 2015-01-18)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.10"
>v1.0.10
  (MIYAGAWA on 2015-01-12)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.9"
>v1.0.9
  (MIYAGAWA on 2014-11-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.8"
>v1.0.8
  (MIYAGAWA on 2014-09-11)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.7"
>v1.0.7
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.6"
>v1.0.6
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.5"
>v1.0.5
  (MIYAGAWA on 2014-05-08)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.4"
>v1.0.4
  (MIYAGAWA on 2013-08-26)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.3"
>v1.0.3
  (MIYAGAWA on 2013-07-23)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.2"
>v1.0.2
  (MIYAGAWA on 2013-04-21)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.1"
>v1.0.1
  (MIYAGAWA on 2013-04-14)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.0"
>v1.0.0
  (MIYAGAWA on 2013-04-07)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.7"
>v0.9.7
  (MIYAGAWA on 2013-04-03)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.6"
>v0.9.6
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.5"
>v0.9.5
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.4"
>v0.9.4
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.3"
>v0.9.3
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.2"
>v0.9.2
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.1"
>v0.9.1
  (MIYAGAWA on 2013-03-28)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.0"
>v0.9.0
  (MIYAGAWA on 2013-03-27)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/MIYAGAWA/Dist-Milla-v1.0.22/diff/' + encodeURIComponent(this.value) + '/lib/Dist/Milla/Tutorial.pod'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="MIYAGAWA/Dist-Milla-v1.0.22"
>v1.0.22
  (MIYAGAWA on 2023-07-05)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.21"
>v1.0.21
  (MIYAGAWA on 2022-02-13)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.20"
>v1.0.20
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.19"
>v1.0.19
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.18"
>v1.0.18
  (MIYAGAWA on 2017-06-06)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.17"
>v1.0.17
  (MIYAGAWA on 2016-11-25)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.16"
>v1.0.16
  (MIYAGAWA on 2016-05-08)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.15"
>v1.0.15
  (MIYAGAWA on 2015-03-31)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.14"
>v1.0.14
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.13"
>v1.0.13
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.12"
>v1.0.12
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.11"
>v1.0.11
  (MIYAGAWA on 2015-01-18)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.10"
>v1.0.10
  (MIYAGAWA on 2015-01-12)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.9"
>v1.0.9
  (MIYAGAWA on 2014-11-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.8"
>v1.0.8
  (MIYAGAWA on 2014-09-11)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.7"
>v1.0.7
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.6"
>v1.0.6
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.5"
>v1.0.5
  (MIYAGAWA on 2014-05-08)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.4"
>v1.0.4
  (MIYAGAWA on 2013-08-26)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.3"
>v1.0.3
  (MIYAGAWA on 2013-07-23)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.2"
>v1.0.2
  (MIYAGAWA on 2013-04-21)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.1"
>v1.0.1
  (MIYAGAWA on 2013-04-14)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.0"
>v1.0.0
  (MIYAGAWA on 2013-04-07)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.7"
>v0.9.7
  (MIYAGAWA on 2013-04-03)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.6"
>v0.9.6
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.5"
>v0.9.5
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.4"
>v0.9.4
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.3"
>v0.9.3
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.2"
>v0.9.2
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.1"
>v0.9.1
  (MIYAGAWA on 2013-03-28)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.0"
>v0.9.0
  (MIYAGAWA on 2013-03-27)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="./Dist::Zilla.html" title="Dist::Zilla" class="ellipsis">Dist::Zilla</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::CheckChangesHasContent" title="Dist::Zilla::Plugin::CheckChangesHasContent" class="ellipsis">Dist::Zilla::Plugin::CheckChangesHasContent</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ConfirmRelease" title="Dist::Zilla::Plugin::ConfirmRelease" class="ellipsis">Dist::Zilla::Plugin::ConfirmRelease</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::CopyFilesFromBuild" title="Dist::Zilla::Plugin::CopyFilesFromBuild" class="ellipsis">Dist::Zilla::Plugin::CopyFilesFromBuild</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::CopyFilesFromRelease" title="Dist::Zilla::Plugin::CopyFilesFromRelease" class="ellipsis">Dist::Zilla::Plugin::CopyFilesFromRelease</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ExecDir" title="Dist::Zilla::Plugin::ExecDir" class="ellipsis">Dist::Zilla::Plugin::ExecDir</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ExtraTests" title="Dist::Zilla::Plugin::ExtraTests" class="ellipsis">Dist::Zilla::Plugin::ExtraTests</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Git::Contributors" title="Dist::Zilla::Plugin::Git::Contributors" class="ellipsis">Dist::Zilla::Plugin::Git::Contributors</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Git::GatherDir" title="Dist::Zilla::Plugin::Git::GatherDir" class="ellipsis">Dist::Zilla::Plugin::Git::GatherDir</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Git::Init" title="Dist::Zilla::Plugin::Git::Init" class="ellipsis">Dist::Zilla::Plugin::Git::Init</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::GithubMeta" title="Dist::Zilla::Plugin::GithubMeta" class="ellipsis">Dist::Zilla::Plugin::GithubMeta</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::License" title="Dist::Zilla::Plugin::License" class="ellipsis">Dist::Zilla::Plugin::License</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::LicenseFromModule" title="Dist::Zilla::Plugin::LicenseFromModule" class="ellipsis">Dist::Zilla::Plugin::LicenseFromModule</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Manifest" title="Dist::Zilla::Plugin::Manifest" class="ellipsis">Dist::Zilla::Plugin::Manifest</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::MetaJSON" title="Dist::Zilla::Plugin::MetaJSON" class="ellipsis">Dist::Zilla::Plugin::MetaJSON</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::MetaYAML" title="Dist::Zilla::Plugin::MetaYAML" class="ellipsis">Dist::Zilla::Plugin::MetaYAML</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ModuleBuildTiny" title="Dist::Zilla::Plugin::ModuleBuildTiny" class="ellipsis">Dist::Zilla::Plugin::ModuleBuildTiny</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::NameFromDirectory" title="Dist::Zilla::Plugin::NameFromDirectory" class="ellipsis">Dist::Zilla::Plugin::NameFromDirectory</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::NextRelease" title="Dist::Zilla::Plugin::NextRelease" class="ellipsis">Dist::Zilla::Plugin::NextRelease</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::PodSyntaxTests" title="Dist::Zilla::Plugin::PodSyntaxTests" class="ellipsis">Dist::Zilla::Plugin::PodSyntaxTests</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Prereqs::FromCPANfile" title="Dist::Zilla::Plugin::Prereqs::FromCPANfile" class="ellipsis">Dist::Zilla::Plugin::Prereqs::FromCPANfile</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ReadmeAnyFromPod" title="Dist::Zilla::Plugin::ReadmeAnyFromPod" class="ellipsis">Dist::Zilla::Plugin::ReadmeAnyFromPod</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ReadmeFromPod" title="Dist::Zilla::Plugin::ReadmeFromPod" class="ellipsis">Dist::Zilla::Plugin::ReadmeFromPod</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ReversionOnRelease" title="Dist::Zilla::Plugin::ReversionOnRelease" class="ellipsis">Dist::Zilla::Plugin::ReversionOnRelease</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::ShareDir" title="Dist::Zilla::Plugin::ShareDir" class="ellipsis">Dist::Zilla::Plugin::ShareDir</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::StaticInstall" title="Dist::Zilla::Plugin::StaticInstall" class="ellipsis">Dist::Zilla::Plugin::StaticInstall</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::Test::Compile" title="Dist::Zilla::Plugin::Test::Compile" class="ellipsis">Dist::Zilla::Plugin::Test::Compile</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::TestRelease" title="Dist::Zilla::Plugin::TestRelease" class="ellipsis">Dist::Zilla::Plugin::TestRelease</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::UploadToCPAN" title="Dist::Zilla::Plugin::UploadToCPAN" class="ellipsis">Dist::Zilla::Plugin::UploadToCPAN</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Plugin::VersionFromMainModule" title="Dist::Zilla::Plugin::VersionFromMainModule" class="ellipsis">Dist::Zilla::Plugin::VersionFromMainModule</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::PluginBundle::Git" title="Dist::Zilla::PluginBundle::Git" class="ellipsis">Dist::Zilla::PluginBundle::Git</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Role::PluginBundle::Config::Slicer" title="Dist::Zilla::Role::PluginBundle::Config::Slicer" class="ellipsis">Dist::Zilla::Role::PluginBundle::Config::Slicer</a></li>
  <li><a href="https://metacpan.org/pod/Dist::Zilla::Role::PluginBundle::PluginRemover" title="Dist::Zilla::Role::PluginBundle::PluginRemover" class="ellipsis">Dist::Zilla::Role::PluginBundle::PluginRemover</a></li>
  <li><a href="https://metacpan.org/pod/Module::CPANfile" title="Module::CPANfile" class="ellipsis">Module::CPANfile</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Dist::Milla::Tutorial/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Dist%3A%3AMilla%3A%3ATutorial">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Dist-Milla">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/MIYAGAWA/Dist-Milla-v1.0.22/view/lib/Dist/Milla/Tutorial.pod">This version</a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Dist-Milla/view/lib/Dist/Milla/Tutorial.pod">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MARCEL"><img src="https://www.gravatar.com/avatar/e8522fce07fb0583955900d3101637ae?d=identicon&amp;s=20" title="MARCEL" alt="MARCEL"></a>
<a class="display-all" href="https://metacpan.org/author/MICHIELB"><img src="https://www.gravatar.com/avatar/c35b97da3835376f2d804b022121f962?d=identicon&amp;s=20" title="MICHIELB" alt="MICHIELB"></a>
<a class="display-all" href="https://metacpan.org/author/BOWTIE"><img src="https://www.gravatar.com/avatar/9f27e15605c9a2d35a4f307a0bbf5dbf?d=identicon&amp;s=20" title="BOWTIE" alt="BOWTIE"></a>
<a class="display-all" href="https://metacpan.org/author/KRAUTCAT"><img src="https://www.gravatar.com/avatar/efd137d1577aa9df7fc833f6306958d5?d=identicon&amp;s=20" title="KRAUTCAT" alt="KRAUTCAT"></a>
<a class="display-all" href="https://metacpan.org/author/PINGAN"><img src="https://www.gravatar.com/avatar/a02222e5e0e4fd24d52fc29a08ac6bcb?d=identicon&amp;s=20" title="PINGAN" alt="PINGAN"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Dist-Milla/plussers">22 PAUSE users</a>
</div>
<div>
    15 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 9 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="powerman@powerman.name"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Alex Efros
    </li>
    <li class="contributor"
      data-cpan-author="CURTIS"
      data-contrib-email="curtis@cpan.org"
    >
      <a href="https://metacpan.org/author/CURTIS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/04d129ebd1821b5c3e2c56783fb38b3a?d=identicon&amp;s=20" />
      Curtis Brandt
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="grinnz@grinnz.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dan Book
    </li>
    <li class="contributor"
      data-contrib-email="flavio@polettix.it"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Flavio Poletti
    </li>
    <li class="contributor"
      data-cpan-author="WOLLMERS"
      data-contrib-email="helmut@wollmersdorfer.at"
    >
      <a href="https://metacpan.org/author/WOLLMERS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/cbca59e0e3c588786bfb7bc67ffb404f?d=identicon&amp;s=20" />
      Helmut Wollmersdorfer
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ETHER"
      data-contrib-email="ether@cpan.org"
    >
      <a href="https://metacpan.org/author/ETHER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" />
      Karen Etheridge
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="mgreb@linode.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      mikegrb
    </li>
    <li class="contributor"
      data-cpan-author="DOLMEN"
      data-contrib-email="dolmen@cpan.org"
    >
      <a href="https://metacpan.org/author/DOLMEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/70d9b050bfe39350c234d710fadfcd39?d=identicon&amp;s=20" />
      Olivier Mengué
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="code@sartak.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Shawn M Moore
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/MIYAGAWA" class="author-name">Tatsuhiko Miyagawa</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Dist/Milla/Tutorial.pod&#39;" class="">
<option
  selected
  value="MIYAGAWA/Dist-Milla-v1.0.22"
>v1.0.22
  (MIYAGAWA on 2023-07-05)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.21"
>v1.0.21
  (MIYAGAWA on 2022-02-13)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.20"
>v1.0.20
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.19"
>v1.0.19
  (MIYAGAWA on 2018-04-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.18"
>v1.0.18
  (MIYAGAWA on 2017-06-06)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.17"
>v1.0.17
  (MIYAGAWA on 2016-11-25)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.16"
>v1.0.16
  (MIYAGAWA on 2016-05-08)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.15"
>v1.0.15
  (MIYAGAWA on 2015-03-31)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.14"
>v1.0.14
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.13"
>v1.0.13
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.12"
>v1.0.12
  (MIYAGAWA on 2015-01-19)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.11"
>v1.0.11
  (MIYAGAWA on 2015-01-18)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.10"
>v1.0.10
  (MIYAGAWA on 2015-01-12)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.9"
>v1.0.9
  (MIYAGAWA on 2014-11-22)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.8"
>v1.0.8
  (MIYAGAWA on 2014-09-11)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.7"
>v1.0.7
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.6"
>v1.0.6
  (MIYAGAWA on 2014-09-10)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.5"
>v1.0.5
  (MIYAGAWA on 2014-05-08)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.4"
>v1.0.4
  (MIYAGAWA on 2013-08-26)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.3"
>v1.0.3
  (MIYAGAWA on 2013-07-23)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.2"
>v1.0.2
  (MIYAGAWA on 2013-04-21)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.1"
>v1.0.1
  (MIYAGAWA on 2013-04-14)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v1.0.0"
>v1.0.0
  (MIYAGAWA on 2013-04-07)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.7"
>v0.9.7
  (MIYAGAWA on 2013-04-03)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.6"
>v0.9.6
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.5"
>v0.9.5
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.4"
>v0.9.4
  (MIYAGAWA on 2013-04-02)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.3"
>v0.9.3
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.2"
>v0.9.2
  (MIYAGAWA on 2013-03-30)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.1"
>v0.9.1
  (MIYAGAWA on 2013-03-28)</option>
<option
  
  value="MIYAGAWA/Dist-Milla-v0.9.0"
>v0.9.0
  (MIYAGAWA on 2013-03-27)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Dist-Milla">Dist-Milla-v1.0.22</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage one &#10;
          • 1 direct dependent &#10;          • 1 total dependent
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Dist-Milla-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Dist-Milla-v1.0.22">
    <input type="hidden" name="author" value="MIYAGAWA">
    <input type="hidden" name="distribution" value="Dist-Milla">
    <button type="submit" class="favorite highlight"><span>37</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Dist::Milla::Tutorial.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>37</span> ++</a>
</div>
   / <span>Dist::Milla::Tutorial</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Dist::Milla::Tutorial.html#NAME">NAME</a></li>
  <li><a href="./Dist::Milla::Tutorial.html#WORKFLOW">WORKFLOW</a>
    <ul>
      <li><a href="./Dist::Milla::Tutorial.html#Setup">Setup</a></li>
      <li><a href="./Dist::Milla::Tutorial.html#Making-a-new-distribution">Making a new distribution</a></li>
      <li><a href="./Dist::Milla::Tutorial.html#Making-the-first-release">Making the first release</a></li>
      <li><a href="./Dist::Milla::Tutorial.html#Making-a-maintainance-release">Making a maintainance release</a></li>
    </ul>
  </li>
  <li><a href="./Dist::Milla::Tutorial.html#MIGRATING">MIGRATING</a>
    <ul>
      <li><a href="./Dist::Milla::Tutorial.html#Automatic-migration">Automatic migration</a></li>
      <li><a href="./Dist::Milla::Tutorial.html#Manually-migrating-from-other-build-tools">Manually migrating from other build tools</a>
        <ul>
          <li><a href="./Dist::Milla::Tutorial.html#Module-Dependencies-to-cpanfile">Module Dependencies to cpanfile</a></li>
          <li><a href="./Dist::Milla::Tutorial.html#Remove-boilerplate">Remove boilerplate</a></li>
          <li><a href="./Dist::Milla::Tutorial.html#Create-a-new-ini-and-edit-configurations">Create a new ini and edit configurations</a></li>
          <li><a href="./Dist::Milla::Tutorial.html#Make-a-new-build">Make a new build</a></li>
        </ul>
      </li>
    </ul>
  </li>
  <li><a href="./Dist::Milla::Tutorial.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Dist::Milla::Tutorial.html#SEE-ALSO">SEE ALSO</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Dist::Milla::Tutorial - Milla HOW TO</p>

<h1 id="WORKFLOW">WORKFLOW</h1>

<p>See also <a href="http://weblog.bulknews.net/post/46471116934/introducing-milla">the screencast</a> explaining how to setup and create a new distribution with Milla.</p>

<h2 id="Setup">Setup</h2>

<p>Install Milla and setup your profile.</p>

<pre><code>  &gt; cpanm Dist::Milla
  &gt; milla setup</code></pre>

<p>Setup command will ask you a simple question to make a basic profile. If you already have set up <code>dzil</code> before, this is common and you can skip the process.</p>

<h2 id="Making-a-new-distribution"><a id="Making"></a>Making a new distribution</h2>

<p>Now it&#39;s time to make a new distribution.</p>

<pre><code>  &gt; milla new Dist-Name
  &gt; cd Dist-Name</code></pre>

<p>At this point, you will have a really simple <code>Dist-Name</code> directory that contains your module file with as minimum boilerplate as possible.</p>

<p>It is recommended to track your repository under git as soon as possible, even before releasing to CPAN.</p>

<pre><code>  # git is already initialized and files are added for you
  &gt; git commit -m &quot;initial commit&quot;</code></pre>

<p>Now start writing your code, edit the docs, tests and manage CPAN dependencies with <a href="https://metacpan.org/pod/cpanfile">cpanfile</a>.</p>

<pre><code>  &gt; $EDITOR lib/Dist/Name.pm t/dist-name.t cpanfile</code></pre>

<p>You can test your code with a simple <code>prove -l t</code>.</p>

<p>For the first time build only, you can make a test build to get some boilerplate you want to keep in the git repository so that your github repository looks great with README, as well as installable from git using <code>cpanm</code> or testable with <code>Travis CI</code>.</p>

<pre><code>  &gt; milla build
  &gt; git add Build.PL META.json README.md &amp;&amp; git commit -m &quot;git stuff&quot;</code></pre>

<h2 id="Making-the-first-release"><a id="Making1"></a>Making the first release</h2>

<p>When you get confident and it&#39;s about time to ship to CPAN, use the test and release command. Before doing so, make sure your git directory is not dirty i.e. all changes are committed.</p>

<pre><code>  &gt; git commit -a -m &quot;Done initial version&quot;</code></pre>

<p>Milla assumes you have a git remote setup so that you can push all your changes to. I recommend you to use either <a href="https://rubygems.org/gems/hub">hub gem</a> or <a href="https://metacpan.org/pod/App::ph">App::ph</a> to create a new github repository.</p>

<pre><code>  # Use hub rubygem
  &gt; hub create

  # Use App::ph
  &gt; ph import</code></pre>

<p>Now, make sure you have <code>Changes</code> file ready and have a new entry under <code>{{$NEXT}}</code>, which will be expanded to the next version of your module.</p>

<pre><code>  &gt; $EDITOR Changes
  &gt; milla test
  &gt; milla release</code></pre>

<p>And your first release is done. The release is tagged on git and all the changes atomatically made are committed to git as well.</p>

<p>If this is your first conversion to Milla and want to make sure you&#39;re not going to mess CPAN with a bad archive when something goes wrong, you can run the release command with <code>FAKE_RELEASE</code> environment variable. This will run all the other release process, except the UploadToCPAN step.</p>

<pre><code>  &gt; FAKE_RELEASE=1 milla release</code></pre>

<p>Wait for PAUSE processing it and your module showing up on MetaCPAN in a few minutes. Congratulations!</p>

<h2 id="Making-a-maintainance-release"><a id="Making2"></a>Making a maintainance release</h2>

<p>You have new features, bugs, pull requests and get ready to make a next version of your module. Great, making a new release is equally easy.</p>

<p>First, make sure all your code has been committed to git and there are no dirty files in the working directory.</p>

<p>Then make sure to edit <code>Changes</code> file and contain entries for the next release under <code>{{$NEXT}}</code>. You don&#39;t need to commit the change to the <code>Changes</code> file, yet.</p>

<p>Now, make a release!</p>

<pre><code>  &gt; milla test
  &gt; milla release</code></pre>

<p>The release command will automatically bump the version for you - if you have <code>0.10</code>, the next version will be <code>0.11</code> by default, but you will be prompted to confirm that version in case you need a major bump.</p>

<p>This will update <code>Changes</code>, <code>META.json</code> and bump <code>$VERSION</code> in your main module. These changes made by Milla will be automatically committed, tagged and pushed to the remote.</p>

<h1 id="MIGRATING">MIGRATING</h1>

<p>This section describes how to migrate your current authoring process to Milla.</p>

<h2 id="Automatic-migration"><a id="Automatic"></a>Automatic migration</h2>

<p>Sister project <a href="Minilla.html">Minilla</a> provides a wonderful conversion tool to migrate your existing distribution to Milla, which happens to be compatible to Milla as well.</p>

<p>As an author of Milla, I use Minilla&#39;s migrate command all the time to get the most of conversion done.</p>

<p>To run Minilla migration tool, install <a href="Minilla.html">Minilla</a> from CPAN and run the <code>minil migrate</code> command in the project root.</p>

<pre><code>    &gt; cpanm Minilla
    &gt; minil migrate &amp;&amp; git rm -f minil.toml</code></pre>

<p>The command will output the migration process, and <code>git add</code> all the changed files for you. Once the migrate command is complete, all you have to do is to create <code>dist.ini</code> file, and run the build command.</p>

<pre><code>    &gt; echo &quot;[@Milla]&quot; &gt; dist.ini
    &gt; milla build</code></pre>

<p>If one of the command has failed, you might need to reset to the original state and run the manual migration. Read on to see how to do that.</p>

<h2 id="Manually-migrating-from-other-build-tools"><a id="Manually"></a>Manually migrating from other build tools</h2>

<h3 id="Module-Dependencies-to-cpanfile"><a id="Module"></a>Module Dependencies to cpanfile</h3>

<p>First, move the prereq declaration from <code>Makefile.PL</code> or <code>Build.PL</code> to <code>cpanfile</code>.</p>

<p>The easiest way to convert existing dependencies to cpanfile is to use the command line tool <code>mymeta-cpanfile</code>, which is installed with <a href="https://metacpan.org/pod/Module::CPANfile">Module::CPANfile</a>. Run the configuration with <code>Makefile.PL</code> for the one last time, then run the <code>mymeta-cpanfile</code> command:</p>

<pre><code>  &gt; perl Makefile.PL
  &gt; mymeta-cpanfile --no-configure
  requires &#39;DBI&#39;, &#39;1.000&#39;;
  
  on test =&gt; sub {
      requires &#39;Test::More&#39;, &#39;0.86&#39;;
  }
  
  ...</code></pre>

<p>You can redirect the output to <code>cpanfile</code> if you like. It is important to pass <code>--no-configure</code> option here, since otherwise modules like ExtUtils::MakeMaker will be included. It is not required with Milla setup, since Milla knows which configuration tool (installer) to use and include them in META files upon the releases. You can leave that out from the <code>cpanfile</code>.</p>

<p>If you decide to manually construct a new cpanfile, the format is mostly compatible to <a href="./Module::Install.html">Module::Install</a>&#39;s requirement DSL.</p>

<pre><code>  # Makefile.PL
  test_requires &#39;Test::More&#39;, 0.90;
  requires &#39;Plack&#39;, &#39;1.000&#39;;</code></pre>

<p>becomes:</p>

<pre><code>  # cpanfile
  test_requires &#39;Test::More&#39;, 0.90;
  requires &#39;Plack&#39;, &#39;1.000&#39;;</code></pre>

<p>which is exactly the same. If you use <a href="./Module::Build.html">Module::Build</a> or <a href="https://metacpan.org/pod/ExtUtils::MakeMaker">ExtUtils::MakeMaker</a>, that will be more manual process, but basically the same thing. See <a href="https://metacpan.org/pod/cpanfile">cpanfile</a> for the available syntax.</p>

<h3 id="Remove-boilerplate"><a id="Remove"></a>Remove boilerplate</h3>

<p>Next, remove unnecessary boilerplate files.</p>

<pre><code>  &gt; git rm {Makefile,Build}.PL MANIFEST MANIFEST.SKIP README .shipit</code></pre>

<h3 id="Create-a-new-ini-and-edit-configurations"><a id="Create"></a>Create a new ini and edit configurations</h3>

<p>Next, create a new <code>dist.ini</code> with the following two lines:</p>

<pre><code>  name = Dist-Name
  [@Milla]</code></pre>

<p>the <code>name = </code> line is optional.</p>

<p>If your work directory is named <code>Dist-Name</code>, Milla will be able to figure out that is your distribution name, so you can omit that line.</p>

<p>Next, Edit <code>.gitignore</code> and add the following lines:</p>

<pre><code>  /Dist-Name-*
  /.build
  !META.json</code></pre>

<p>You&#39;re almost done, and your directory will look like:</p>

<pre><code>  cpanfile
  dist.ini
  lib/Dist/Name.pm
  t/...</code></pre>

<p><code>git add</code> the newly created files and commit it.</p>

<h3 id="Make-a-new-build"><a id="Make"></a>Make a new build</h3>

<p>Now you&#39;re ready to make the first build.</p>

<pre><code>  &gt; milla build</code></pre>

<p>and if it was successful, you get a build in a directory called <code>Dist-Name-v0.1.0</code> under your current directory. They can be later removed with <code>milla clean</code> command.</p>

<p>Also, new <code>Build.PL</code>, <code>META.json</code> and <code>README.md</code> are added in your working directory for git-friendliness. <code>git add</code> them and commit it.</p>

<pre><code>  &gt; git add Build.PL META.json README.md &amp;&amp; git commit -m &quot;git stuff&quot;</code></pre>

<p>Now you&#39;re ready to roll a new release with Milla. Before doing so, convert your <code>Changes</code> file format a little bit, and make sure you have a following header in the top:</p>

<pre><code>  {{$NEXT}}
          - Change log entry for the next version</code></pre>

<p>The <code>{{$NEXT}}</code> is a template variable that gets replaced with the version and date string, when you make a next release. This is almost the <i>only</i> change you&#39;re required to make in your code base.</p>

<p>Now, run the release command:</p>

<pre><code>  &gt; milla release</code></pre>

<p>to make a new release, in the same way described above for a new Milla setup. You can set <code>FAKE_RELEASE</code> environment variable if this is your first conversion and want to double check what happens, before uploading to CPAN.</p>

<p>When this is not your first release, the version number gets automatically bumped by Milla, but you will be prompted if that is exactly the version you want, and if you want a major version up, you can specify to do so.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Tatsuhiko Miyagawa</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="./Dist::Milla.html">Dist::Milla</a></p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Dist::Milla, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Dist::Milla</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Dist::Milla</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Dist::Milla::Tutorial.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
